package com.digwin.main;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.context.ApplicationPidFileWriter;

@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
public class DWAppStartBoot {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(DWAppStartBoot.class);
        springApplication.addListeners(new ApplicationPidFileWriter("DWAppStartBoot.pid"));

        springApplication.setMainApplicationClass(DWAppStartBoot.class);
        springApplication.run(args);
        System.out.println("======> DWAppStartBoot 启动成功 =====");
    }
}
